home *** CD-ROM | disk | FTP | other *** search
- Path: hp70.rbg.informatik.th-darmstadt.de!meixner
- From: meixner@rbg.informatik.th-darmstadt.de (Matthias Meixner)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: resourcetracking/Kill on A4000
- Date: 23 Jan 1996 10:21:02 GMT
- Organization: Technische Hochschule Darmstadt
- Message-ID: <4e2cqe$1i2j@rs18.hrz.th-darmstadt.de>
- References: <4e0554$hro@merkurius.lu.se>
- NNTP-Posting-Host: hp70.rbg.informatik.th-darmstadt.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- ali (Anders Lindgren) (dat94ali) wrote:
- : After some time of drustration with my old
- : OS1.3 A500/2x512k/2floppies/no HD, I upgraded a
- : fortnight ago by buying myself a nice little
- : A4000/040/6Mb/460Mb HD/OS3.0 8-) Anyway, I thought
- : that now that I've got enough RAM to actually run
- : several apps simultaneously, it would be quite nice
- : to have a commodity that keeps track of what memory
- : goes where and that would allow me to kill of crashed
- : tasks (if they don't bring the whole OS with them in
- : the fall). I.e. resourcetracking. Patching/Wrapping
- : the OS-functions AllocMem and FreeMem would seem enough
- : for just taking back memory from crashed programs, but to
- : be able to kill them, resources would have to be returned
- : too, so patching OpenLibrary, OpenDevice and such would
- : also be needed, right? Well, to get to the point;
- :
-
- Resource-tracking is not possible with the current version
- of the OS. The problem is resource trading:
-
- task "a" allocatest memory and sends it to task "b"
- task "b" can now do with it what it wants.
- If you had resourcetracking, the memory would be
- freed if task "a" terminates and whereas task "b"
- would still use it, which is a good way to bring a
- system down.
-
- With the current version of the OS, the OS cannot
- know, who actually holds a resource, and therefore
- there cannot be resource-tracking.
-
- --
-
- - Matthias Meixner
-
- -----------------------------------------------------------------------------
- EMail: meixner@rbg.informatik.th-darmstadt.de
- WWW: http://www.student.informatik.th-darmstadt.de/~meixner/
-
- Uebrigens: Nachts gehen Sonnenuhren nach dem Mond ...
-
-